package org.rk.core.user.userRole;

import javax.validation.constraints.NotNull;

import org.rk.core.common.anno.FieldMeta;
import org.rk.core.common.anno.TableMeta;
import org.rk.core.common.bean.BaseBean;
@TableMeta(name = "core_user_role", catalog = "rk_user_manage")
public class CoreUserRole extends BaseBean{

	private static final long serialVersionUID = 1L;
	@NotNull(message="会员号不可为空")
	@FieldMeta(name="userNum",length=20,desc="")
	private String userNum;
	@NotNull
	@FieldMeta(name="roleId",length=20,desc="")
	private long roleId;
	@NotNull
	@FieldMeta(name="enabled",length=2,desc="")
	private String enabled;

	public void setRoleId(long roleId){
		this.roleId=roleId;
	}

	public long getRoleId(){
		return roleId;
	}

	public void setEnabled(String enabled){
		this.enabled=enabled;
	}

	public String getEnabled(){
		return enabled;
	}

	public String getUserNum() {
		return userNum;
	}

	public void setUserNum(String userNum) {
		this.userNum = userNum;
	}

}
